class Login {
    constructor(ele) {
        this.ele = ele;
        this.init();
    }
    init() {
        this.loginBtn = $('.loginBtn');

        this.loginBtn.on('click', () => {
            location.replace('./homepage.html');
        })
    }
}

new Login($('main'));